package me.ingxin.android.router.annotaions

import me.ingxin.android.router.annotaions.route.IRouteInterceptor
import kotlin.reflect.KClass

/**
 * Created by ingxin on 2022/4/13
 * @param path 路由地址
 * @param interceptorName 通过名字指定拦截器（只对activity和routeHandler生效）
 * @param interceptor 通过类指定拦截器（只对activity和routeHandler生效）
 * @param hold 是否启用hold功能（只对activity和routeHandler生效）
 *
 */
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE)
annotation class Route(
    val path: String,
    val interceptorName: Array<String> = [],
    val interceptor: Array<KClass<out IRouteInterceptor>> = [],
    val hold: Boolean = false
)